package com.springweb.unit2.xml.impl;

import java.util.List;

import com.springweb.unit2.xml.MediaPlayer;
import com.springweb.unit2.xml.CompactDisc;

public class Discography implements MediaPlayer {
	private List<CompactDisc> cds;
	
	public Discography(List<CompactDisc> cds) {
		this.cds = cds;
	}

	@Override
	public void play() {
		for (CompactDisc cd : cds) {
			cd.play();
		}
	}

}
